package org.dromara.wmscloud.domain.bo;

import org.dromara.wmscloud.domain.BaseWorkshop;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 车间业务对象 base_workshop
 *
 * @author hou
 * @date 2025-04-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseWorkshop.class, reverseConvertGenerate = false)
public class BaseWorkshopBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long workshopId;

    /**
     * 车间编码
     */
    @NotBlank(message = "车间编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workshopCode;

    /**
     * 车间名称
     */
    private String workshopName;


}
